package cn.ljlao.mall.product.goods.feign;

import cn.ljlao.mall.product.goods.feign.vo.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author: LiuZhen
 * @Created: 2021/8/1 21:50
 * @Description:
 */
@FeignClient("mall-ware")
public interface WareFeignService {

    // 查询 sku 是否有库存
    @PostMapping("/ware/waresku/hasstock")
    public List<SkuHasStockVo> getSkusHasStock(@RequestBody List<Long> skuIds);
}
